<?php

namespace App\Http\Model;

use Illuminate\Database\Eloquent\Model;

class OrdersInfo extends Model
{
    protected $table='orders_info';
    protected $guarded=[];
    public function orders(){
        return $this->belongsTo('App\Http\Model\Orders','orders_id');
    }
    public function comment(){
        return $this->hasOne('App\Http\Model\Comment','orders_info_id');
    }
    public function clothingAttr(){
    	return $this->belongsTo('App\Http\Model\ClothingAttr','clothing_attr_id');
    }
    public function goods(){
        return $this->belongsTo('App\Http\Model\Goods','goods_id');
    }
    public function refundImage(){
        return $this->hasMany('App\Http\Model\RefundImage','orders_info_id');
    }
}
